From: Eric Curtin Date: Mon, 8 Jun 2026 20:53:06 +0000 (+0100) Subject: static-delta: remove unused total_usize variable X-Git-Tag: archive/raspbian/2026.2-1+rpi1^2~9^2^2~9^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3c60ff8e482e0584040dfd3489faafef18e67307;p=ostree.git static-delta: remove unused total_usize variable In _ostree_delta_get_endianness, total_usize was accumulated across delta parts but never read or used in any heuristic or output. Remove the dead variable and its accumulation. --- diff --git a/src/libostree/ostree-repo-static-delta-core.c b/src/libostree/ostree-repo-static-delta-core.c index 1a1b3309..f666e8a5 100644 --- a/src/libostree/ostree-repo-static-delta-core.c +++ b/src/libostree/ostree-repo-static-delta-core.c @@ -817,7 +817,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic) *out_was_heuristic = TRUE; guint64 total_size = 0; - guint64 total_usize = 0; guint total_objects = 0; { g_autoptr (GVariant) meta_entries = NULL; @@ -837,8 +836,6 @@ _ostree_delta_get_endianness (GVariant *superblock, gboolean *out_was_heuristic) total_objects += n_objects; total_size += size; - total_usize += usize; - if (size > usize) { double ratio = ((double)size) / ((double)usize);